package com.mall.cart.common.domain;


import com.mall.common.core.annotation.Excel;
import com.mall.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * shopping对象 cart_item
 *
 * @author ruoyi
 * @date 2024-12-27
 */
public class CartItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 商品skuId */
    @Excel(name = "商品skuId")
    private Long skuId;

    /** 商品spuId */
    @Excel(name = "商品spuId")
    private Long spuId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 商家id */
    @Excel(name = "商家id")
    private Long sellerId;

    /** 数量 */
    @Excel(name = "数量")
    private Long quantity;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 是否选中0-未选中 1-选中 */
    @Excel(name = "是否选中0-未选中 1-选中")
    private Long checked;

    /** 标题 */
    @Excel(name = "标题")
    private String skuTitle;

    /** 默认图片 */
    @Excel(name = "默认图片")
    private String skuDefaultImg;

    /** 规格属性 */
    @Excel(name = "规格属性")
    private String attribute;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSkuId(Long skuId)
    {
        this.skuId = skuId;
    }

    public Long getSkuId()
    {
        return skuId;
    }
    public void setSpuId(Long spuId)
    {
        this.spuId = spuId;
    }

    public Long getSpuId()
    {
        return spuId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setSellerId(Long sellerId)
    {
        this.sellerId = sellerId;
    }

    public Long getSellerId()
    {
        return sellerId;
    }
    public void setQuantity(Long quantity)
    {
        this.quantity = quantity;
    }

    public Long getQuantity()
    {
        return quantity;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setChecked(Long checked)
    {
        this.checked = checked;
    }

    public Long getChecked()
    {
        return checked;
    }
    public void setSkuTitle(String skuTitle)
    {
        this.skuTitle = skuTitle;
    }

    public String getSkuTitle()
    {
        return skuTitle;
    }
    public void setSkuDefaultImg(String skuDefaultImg)
    {
        this.skuDefaultImg = skuDefaultImg;
    }

    public String getSkuDefaultImg()
    {
        return skuDefaultImg;
    }
    public void setAttribute(String attribute)
    {
        this.attribute = attribute;
    }

    public String getAttribute()
    {
        return attribute;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("skuId", getSkuId())
            .append("spuId", getSpuId())
            .append("userId", getUserId())
            .append("sellerId", getSellerId())
            .append("quantity", getQuantity())
            .append("price", getPrice())
            .append("checked", getChecked())
            .append("createTime", getCreateTime())
            .append("skuTitle", getSkuTitle())
            .append("skuDefaultImg", getSkuDefaultImg())
            .append("attribute", getAttribute())
            .toString();
    }
}
